<?php
/**
 * xysc users Version1.0
 * ==================================
 * Copy 2016-2017
 * Web:www.xjh7.com
 * ==================================
 * Author:lj
 * Date:2016-4-26
*/

	
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
<title>轩辕商城-后台</title>
<link rel="stylesheet" type="text/css" href="<?php echo backweb_CSS_URL;?>index.css" />
<link rel="stylesheet" type="text/css" href="<?php echo backweb_CSS_URL;?>common.css" />
<script type="text/javascript" src="<?php echo backweb_JS_URL;?>jquery.js"></script>

</head>
<body onload="isTop()">
	<div class="place" style="display:none">
		<span>位置：</span>
		<ul class="placeul">
			<li><a href="#">首页</a></li>
			<li><a href="#">系统管理</a></li>
			<li><a href="#">用户管理</a></li>
			<li><a href="#">修改用户</a></li>
		</ul>
	</div>
	<form  name="form1" method="post" action="./index.php?r=backweb/user/Update&user_id=<?php echo $user_id;?>" >
		<div id="table" >
     	   <div>
             <table class="list_table mt10">
			 <tr>
				 <td class="td_center wh100">用户名称：</td>
				 <td>
				     <input type="text" name="user_name" value="<?php echo $userinfo['user_name'];?>" class="input-text"/>
				 </td>		
			  </tr>
			  <tr  class="mt25">
			  	<td class="td_center">用户密码：</td>
				 <td>
				     <input type="password" name="user_password"  class="input-text"/>(留空不修改)
				 </td>
			  </tr>	
			  <tr  class="mt25">
			  	<td class="td_center">用户角色：</td>
				 <td>
				    <div class="select_border"> 
                        <div class="select_containers "> 
						     <select id="nav_parent" name="role_id" class="select">	
						       	<?php foreach($role_infos as $_v){ ?>
									<option value="<?php echo $_v['role_id'];?>" <?php if($_v['role_id'] == $userinfo['role_id']) echo 'selected="selected"';?>><?php echo $_v['role_name']; ?></option>
								<?php }?>
						     </select>
				   		  </div>
				     </div> 
				 </td>
			  </tr>	
			  
			 		
			  <tr>
					<td class="td_center wh100">是否可用：</td>
					<td> <input type="radio" name="active" value="1" <?php if($userinfo['active'] == 1) echo 'checked="checked"';?> />是
					         <input type="radio" name="active" value="0" <?php if($userinfo['active'] == 0) echo 'checked="checked"';?> />否
					</td>
				</tr>
			  <tr>
				  <td class="td_center">
				    <input type="submit" name="btsave" id="btsave" value="修改" class="btn btn82 btn_save ml25" />				
				 </td>
				 <td>
				   <input type="reset" value="重置" class="btn btn82 btn_res ml10" />
				</td>
			 </tr>
			 </table>
          </div>
        </div>       
    </form>    
</body>
</html>